<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
    <a class="navbar-brand" href="#">
        <img src="../../assets/logo.png" width="30" height="30" 
        class="d-inline-block align-top" alt="">
        Angular中文社区
      </a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" 
    data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" 
    aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav mr-auto">
        <li class="nav-item active">
          <a class="nav-link" href="#">动态</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">官方文档</a>
        </li>
        <li class="nav-item">
          <a class="nav-link " href="http://blog.csdn.net/onil_chen">CSDN</a>
        </li>
      </ul>
      <ul class="navbar-nav my-2 my-lg-0">
          <li class="nav-item">
              <a class="nav-link" href="#">注册</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">登录</a>
            </li>
      </ul>
    </div>
  </nav>